package xjtu.one.xsgw;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import xjtu.one.xsgw.query.worker.WorkerAPI;

@SpringBootApplication

@MapperScan({"xjtu.one.xsgw.*.*.dao"})
public class XsgwApplication {

    public static void main(String[] args) {

        ApplicationContext ctx =  SpringApplication.run(XsgwApplication.class, args);

        WorkerAPI test = ctx.getBean(WorkerAPI.class);
        System.out.println(test);

        System.out.println(test.hi());
    }

}
